<?php if (!defined('THINK_PATH')) exit();?><!doctype html>
<html lang="en" style="overflow:hidden;">
<head>
	<meta charset="UTF-8">
	<meta name="viewport" content="width=device-width,minimum-scale=1.0,maximum-scale=1.0,user-scalable=no">
	<title>捐款公示系统-手机版</title>
	<link rel="stylesheet" href="/ranking/Public/Mobile/css/style.css" />
	<script src="/ranking/Public/Static/js/jquery.js"></script>
</head>
<body style="background-image:url(/ranking/Public/Mobile/images/search-bg.jpg);background-size:100%;background-repeat:no-repeat;">

	<div class="container">
		
		<div class="search">
			<form action="<?php echo U();?>">
				<input placeholder="&nbsp;捐款人" name="keyword" class="search-input" type="text"><input type="submit" class="search-button" value=" ">
			</form>
		</div>

	</div>

<script src='/ranking/Public/Mobile/js/blooming-menu.min.js'></script>
<script>
	$(function(){

	    var bloomingMenu = new BloomingMenu({
	      startAngle: -90,
	      endAngle: 0,
	      radius: 100,
	      itemsNum: 4,
	      itemAnimationDelay: 0.08
	    })
	    bloomingMenu.render();

		bloomingMenu.props.elements.items.forEach(function (item, index) {
		  item.addEventListener('click', function () {
		    // window.location.href="http://m.baidu.com";
		    //console.log('Item #' + index + 'was clicked')
		    	console.log(index);
		    	switch(index) {
		    		case 0:
		    			window.location.href="<?php echo U('Index/index');?>";
		    			break;
		    		case 1:
		    			window.location.href="<?php echo U('Index/search');?>";
		    			break;
		    		case 2:
		    			window.location.href="<?php echo U('Article/index');?>?id=9";
		    			break;
		    		case 3:
		    			window.location.href="<?php echo U('Article/index');?>?id=10";
		    			break;
		    	}
		  })
		});

		$(".blooming-menu__container .blooming-menu__item-btn-wrapper .blooming-menu__item-btn:eq(0)").html('首页');
		$(".blooming-menu__container .blooming-menu__item-btn-wrapper .blooming-menu__item-btn:eq(1)").html('搜索');
		$(".blooming-menu__container .blooming-menu__item-btn-wrapper .blooming-menu__item-btn:eq(2)").html('捐款方式');
		$(".blooming-menu__container .blooming-menu__item-btn-wrapper .blooming-menu__item-btn:eq(3)").html('春祭简介');
	});
</script>
</body>
</html>